package com.xxxx;

import com.xxxx.config.BeanConfig;
import com.xxxx.service.BookService;
import org.junit.Test;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * Created By ShaoXikai on 2022/7/20
 */
public class TestApp {

    @Test
    public void testAnno() {
        AnnotationConfigApplicationContext ac = new AnnotationConfigApplicationContext(BeanConfig.class);
        BookService bookService = ac.getBean(BookService.class);
        bookService.s1();
    }

}
